package org.dromara.regionData.domain.bo;

import org.dromara.regionData.domain.InsuranceRegionData;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 行政区汇总业务对象 insurance_region_data
 *
 * @author Lion Li
 * @date 2024-12-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = InsuranceRegionData.class, reverseConvertGenerate = false)
public class InsuranceRegionDataBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 行政区名称
     */
    @NotBlank(message = "行政区名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String regionName;

    /**
     * 行政区级别
     */
    @NotBlank(message = "行政区级别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String regionLevel;

    /**
     * 参保户数
     */
    @NotNull(message = "参保户数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long insuredCount;

    /**
     * 参保金额
     */
    @NotNull(message = "参保金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long insuredAmount;

    /**
     * 理赔案件数
     */
    @NotNull(message = "理赔案件数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long claimCount;

    /**
     * 理赔金额
     */
    @NotNull(message = "理赔金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long claimAmount;

    /**
     * 险种类别
     */
    @NotBlank(message = "险种类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String insuranceType;

    /**
     * 最后登录IP
     */
    @NotBlank(message = "最后登录IP不能为空", groups = { AddGroup.class, EditGroup.class })
    private String loginIp;

    /**
     * 最后登录时间
     */
    @NotNull(message = "最后登录时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date loginDate;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
